export const liveListLink = ({ dispatch, query }) => {
  dispatch({
    type: 'login/findAccessId',
    payload: {
      pathname: '/marketingModule/liveDetail',
      linkPush: 'open',
      query,
    },
  });
};

export const directLiveLink = ({ dispatch, query }) => {
  dispatch({
    type: 'login/findAccessId',
    payload: {
      pathname: '/marketingModule/directLiveDetail',
      linkPush: 'open',
      query,
    },
  });
};

export const OnDemandListLink = ({ dispatch, query }) => {
  dispatch({
    type: 'login/findAccessId',
    payload: {
      pathname: '/marketingModule/onDemandDetail',
      linkPush: 'open',
      query,
    },
  });
};


export const DemandServerVideoLink = ({ dispatch, query }) => {
  dispatch({
    type: 'login/findAccessId',
    payload: {
      pathname: '/marketingModule/demandServiceDetail',
      linkPush: 'open',
      query,
    },
  });
};
export const DemandVideoLink = ({ dispatch, query }) => {
  dispatch({
    type: 'login/findAccessId',
    payload: {
      pathname: '/marketingModule/demandVideoDetail',
      linkPush: 'open',
      query,
    },
  });
};

export const onLiveClassList = ({ dispatch, query }) => {
  dispatch({
    type: 'login/findAccessId',
    payload: {
      pathname: '/marketingModule/liveClassDetail',
      linkPush: 'open',
      query,
    },
  });
};

export const onFaceToFace = ({ dispatch, query }) => {
  dispatch({
    type: 'login/findAccessId',
    payload: {
      pathname: '/marketingModule/faceToFaceDetail',
      linkPush: 'open',
      query,
    },
  });
};

export const onCommodity = ({ dispatch, query }) => {
  dispatch({
    type: 'login/findAccessId',
    payload: {
      pathname: '/commodityModule/commodityDetail',
      linkPush: 'open',
      query,
    },
  });
};
